package com.xnyzc.lhy.didi.Impl;

import com.xnyzc.lhy.didi.entity.order.OaSysCityInfo;
import com.xnyzc.lhy.didi.mapper.price.OaSysCityInfoMapper;
import com.xnyzc.lhy.didi.service.cityInfo.CityInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ApplicationRunnerImpl implements ApplicationRunner {

    @Autowired
    private CityInfoService service;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("didi模块启动成功，自动运行区域中心点刷新方法！");
        service.refreshCityInfo();
    }
}
